//
//  PBJViewController.h
//  TestVideo
//
//  Created by Wang Xj on 13-8-29.
//  Copyright (c) 2013年 Xj Wang. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AssetsLibrary/AssetsLibrary.h>

#import "PBJStrobeView.h"
#import "PBJVision.h"
@class BanBu_SnapController;


@interface PBJViewController : UIViewController<UIGestureRecognizerDelegate,PBJVisionDelegate,UIAlertViewDelegate>
{
    PBJStrobeView *_strobeView;
    UIButton *_doneButton;
    UIButton *_flipButton;
    
    UIView *_previewView;
    AVCaptureVideoPreviewLayer *_previewLayer;
    
    UILongPressGestureRecognizer *_longPressGestureRecognizer;
    BOOL _recording;
    
    UIProgressView * _progress;//进度显示
    UILabel * _timeLabel;       //录制时间长度显示
    
    ALAssetsLibrary *_assetLibrary;
    __block NSDictionary *_currentVideo;
    
    UIButton * _torchButton;//闪光灯
    BOOL _torchON;       //闪光灯的开启状态
    
    UIButton * _cancelButton;//取消
    
    BOOL _isSave;    //是否保存视频
    
    UIButton * _muteButton;//静音按钮
    
    UIButton * _definitionButton;//视频尺寸按钮
    
    UIButton * _videoAndPhotoButton;//在发送阅后即焚消息是可用，其他时候隐藏
}

@property (assign, nonatomic)NSInteger count;
@property (retain, nonatomic)NSTimer * timer;

@property (assign, nonatomic)BanBu_SnapController * snapController;
@property (retain, nonatomic)NSString * quote;//引用的位置（阅后即焚、发视频）

- (void)_startCapture;
- (void)_resetCapture;
- (void)_endCapture;
@end
